<!DOCTYPE html>
<html lang="zh-cn" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8" />
<title>应急路线</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link th:href="@{../assets/css/page.css}" rel="stylesheet" />

</head>
<body class="inside-header inside-aside ">
<div id="main" role="main">
<div class="widget-body no-padding">


<div id="J_demo"></div>

</div></div>
<script type="text/javascript" th:src="@{../assets/libs/jquery/dist/jquery.js}"></script>
<script type="text/javascript" th:src="@{../assets/libs/bootstrap/dist/js/bootstrap.js}"></script>
<script type="text/javascript" th:src="@{../assets/libs/toastr/toastr.js}"></script>
<script type="text/javascript" th:src="@{../assets/libs/bootstrap-table/dist/bootstrap-table.min.js}"></script>
<script type="text/javascript" th:src="@{../assets/libs/bootstrap-table/dist/locale/bootstrap-table-zh-CN.js}"></script>
<script type="text/javascript" th:src="@{../assets/libs/bootstrap-table/dist/extensions/export/bootstrap-table-export.js}"></script>
<script type="text/javascript" th:src="@{../assets/libs/layer/src/layer.js}"></script>
<script type="text/javascript" th:src="@{../assets/js/page.js}"></script>


    <script src="https://g.alicdn.com/aliww/h5.imsdk/2.1.5/scripts/yw/wsdk.js" charset="utf-8"></script>
<!-- 自动适配移动端与pc端 -->
<script src="https://g.alicdn.com/aliww/??h5.openim.sdk/1.0.6/scripts/wsdk.js,h5.openim.kit/0.3.3/scripts/kit.js" charset="utf-8"></script>
<script th:inline="javascript">

    window.onload = function(){
	var uid=/*[[${name}]]*/
	var credential=/*[[${pwd}]]*/
	
 
	
       WKIT.init({
    container: document.getElementById('J_demo'),
    width: 1500,
    height: 700,
    uid: uid,
    appkey: 24780111,
	avatar:"../assets/img/globe.png",
	theme:"orange",
    credential: credential,
    touid: 'admin4',
	sendBtn:true,
	title:true,
    logo: 'http://img.alicdn.com/tps/i3/TB12LD9IFXXXXb3XpXXSyFWJXXX-82-82.png',
   	pluginUrl: 'http://www.taobao.com/market/seller/openim/plugindemo.php',
  	 onLoginSuccess: function(){
     
		var sdk = new WSDK();
		sdk.Base.getRecentContact({
        count: 10,
        success: function(data){
             alert(1111);
        },
        error: function(error){
            console.log('获取最近联系人及最后一条消息内容失败' ,error);
        }
    });
    }
 	
});


    }



 

</script>

</body></html>

